
/* 
    @fiel:  protocol.h
    @code:  c(//utf-8)
 */


#ifndef _NETCONNECT_H
#define _NETCONNECT_H

#ifdef __cplusplus
extern "C" {
#endif

/* ------------------------------------------------------------------------- */

#include<stdio.h>
#include<string.h>
#include<stdlib.h>
#include<sys/types.h>
#include<sys/socket.h>
#include<arpa/inet.h>
#include<netinet/in.h>
#include<unistd.h>

#include <pthread.h>
extern int socket_desc;


void *task_netconnect(void * arg);
void sendoneimg(unsigned int sx,unsigned int sy,unsigned int ex,unsigned int ey,unsigned char *color_p);
/* ------------------------------------------------------------------------- */
/* LVGL */
typedef struct 
{
    unsigned char           tf;//touch flag
    unsigned char           type;
    unsigned int            tx;
    unsigned int            ty;
}touch_t;
extern touch_t  touchnet;
void ncmemcp(unsigned char * pof,unsigned char * pif,unsigned int dlen);
/* ------------------------------------------------------------------------- */

#ifdef __cplusplus
}
#endif

#endif //#ifndef _NETCONNECT_H

